import React from "react";

// 定义接口
type Iprops = {
    name: string
}

type Istate = {
    hobby: Array<string>,
    age: number
}

class Product extends React.Component<Iprops, Istate> {
    name: string
    constructor(props: any) {
        super(props)
        this.name = "三少爷"
        this.state = {
            hobby: ["抽烟", "喝酒", "小姐姐"],
            age: 20
        }
    }
    render() {
        return (
            <fieldset>
                <legend>产品</legend>
                <h1>产品</h1>
            </fieldset>
        )
    }
}

export default Product